//
//  LXDSelectSingerModel.m
//  BLDMusics
//
//  Created by lxd on 16/3/20.
//  Copyright © 2016年 李晓丹. All rights reserved.
//

#import "LXDSelectSingerModel.h"

@implementation LXDSelectSingerModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"favorites"]) {
        if ([value integerValue] > 10000) {
            CGFloat count = [value floatValue] / 10000;
            self.favoriteCount = [NSString stringWithFormat:@"%1f万", count];
        } else {
            self.favoriteCount = [NSString stringWithFormat:@"%@", value];
        }
    }
}


@end
